import { post, get, patch, put, deletefn, postByFormData } from '../common/http'

const apiAdd = p =>post("/api/add", p);
const apiSuiteTree = p => get("/apiSuite/listTree", p);
const apiSuiteList = p => get("/apiSuite/list",p);
const apiSuiteAdd = p =>post("/apiSuite/add",p);
const apiPage = p => get("/api/page", p);
const apiDetails = p => get("/api/details", p);
const apiUpdate = p => post("/api/update", p);
const apiRun = p => postByFormData("/api/run", p);
const apiDelete =p =>deletefn("/api/delete",p);
export default {
    apiSuiteTree,
    apiPage,
    apiDetails,
    apiUpdate,
    apiRun,
    apiSuiteAdd,
    apiSuiteList,
    apiAdd,
    apiDelete,
}
